package com.itheima.service;


import com.itheima.domain.Permission;

import java.util.List;

/*
* 资源权限
* */
public interface PermissionService {

    //资源权限查询
    List<Permission> findAll() throws Exception;

    //添加资源权限
    void save(Permission permission) throws Exception;

    //根据角色的id查询所有没有关联的资源权限
    List<Permission> findOtherPermission(String id) throws Exception;

    //根据资源权限id查询信息
    Permission findByPermissionId(String id) throws  Exception;

}
